<h2>Edytuj dane zdjęcia</h2>
<form action="{$smarty.const.HTTP_URL}{$smarty.request.page},Blog,zapiszEdytowanyWpis.html" enctype="multipart/form-data" method="post">
<input type="hidden" name="blcID" value="{$photo[0].blcID}"/>
<input type="hidden" name="blwID" value="{$photo[0].blwID}"/>
<input type="hidden" name="blcPage" value="{$smarty.request.page}"/>
<table>
	<tr>
		<th style="border-bottom: dotted 1px #fff;">
			Kategoria: 
		</th>
		<td style="border-bottom: dotted 1px #fff;">{$kateg.blcNazwa}</td>
	</tr>
	<tr>
		<th>
			Temat wpisu:
		</th>
		<td>
		{foreach from=$smarty.const.LANGU|unserial key=k item=v}
			<input type="text" name="blwTemat[{$k}]" value="{section name=id loop=$photo}{if  $photo[id].blwLang eq $k}{$photo[id].blwTemat}{/if}{/section}" style="width:300px;"/>[ {$k} ] {$v}
		{/foreach}
		</td>
	</tr>
	<tr>
		<th valign="top">
			Treśc wpisu
		</th>
		<td>
		
			<div id="langs-wpisy">
				<ul>
				{foreach from=$smarty.const.LANGU|unserial key=k item=v}
					<li><a href="#tabs-{$k}">[ {$k} ] {$v}</a></li>
				{/foreach}
				</ul>
				
				{foreach from=$smarty.const.LANGU|unserial key=k item=v}	
					<div id="tabs-{$k}">
						<textarea name="blwWpis[{$k}]" class="htmledytor" style="height: 300px; width: 90%;">{section name=id loop=$photo}{if  $photo[id].blwLang eq $k}{$photo[id].blwWpis}{/if}{/section}</textarea>
					</div>
				{/foreach}
			</div>

		</td>
	</tr>	
	
	<tr>
		<th></th>
		<th>
			<input type="submit" value="Zapisz treśc wpisu"/> <input type="button" value="Zrezygnuj" onclick="document.location='{$smarty.const.HTTP_URL}{$smarty.request.page},,wyswietlWpisy,{$photo[0].blcID}.html';"/>
		</th>
	</tr>	
</table>
</form>

{literal}
<script type="text/javascript">
	$(function() {
		$("#langs-wpisy").tabs();
	});
</script>
{/literal}